package com.gwtsz.chart.output.customer;

import com.gwtsz.chart.components.YAxis;

/**
 * 作者：spence
 * 邮箱：1025065158
 * 博客：http://blog.csdn.net/qqyanjiang
 */
public class MyYAxis extends YAxis {

    private float baseValue = Float.NaN;
    private String minValue;
    private int limitLineColor;
    private boolean isNeedOffset = true;   //设置 Y 轴文字是否需要偏移量
    private boolean isSideNeedPathEffect = true;    // 设置 Y 轴边缘线条是否需要虚线显示

    public MyYAxis() {
        super();
    }

    public MyYAxis(AxisDependency axis) {
        super(axis);
    }

    public void setShowMaxAndUnit(String minValue) {
        setShowOnlyMinMax(true);
        this.minValue = minValue;
    }

    public float getBaseValue() {
        return baseValue;
    }

    public String getMinValue() {
        return minValue;
    }

    public void setBaseValue(float baseValue) {
        this.baseValue = baseValue;
    }

    public int getLimitLineColor() {
        return limitLineColor;
    }

    public void setLimitLineColor(int limitLineColor) {
        this.limitLineColor = limitLineColor;
    }

    public boolean isNeedOffset() {
        return isNeedOffset;
    }

    public void setNeedOffset(boolean needOffset) {
        isNeedOffset = needOffset;
    }

    public boolean isSideNeedPathEffect() {
        return isSideNeedPathEffect;
    }

    public void setSideNeedPathEffect(boolean sideNeedPathEffect) {
        isSideNeedPathEffect = sideNeedPathEffect;
    }
}
